package javass;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class PreparedStatementUtil {
	PreparedStatement psm = null;
	/**
	 * ���PreparedStatement
	 * @param conn
	 * @param sql
	 * @return
	 * @throws SQLException
	 */
	public PreparedStatement getPreparedStatement(Connection conn, String sql) throws SQLException {
		psm = conn.prepareStatement(sql);
		return psm;
	}
	/**
	 * �ر�PreparedStatement
	 * @throws SQLException
	 */
	public void closePreparedStatement() throws SQLException{
		psm.close();
	}

}
